package com.burns.jdk9.gui.container;/**
 * Created by burns.
 *
 * @author <a href="http://www.esoon-soft.com/">burns</a>
 * @date 2021/11/28 20:38
 */

import java.awt.*;

/**
 * @Description TODO
 * @ClassName ScrollPaneDemo
 * @Author Burns
 * @DAte 2021/11/28 20:38
 */
public class ScrollPaneDemo {
    public static void main(String[] args){
        Frame frame = new Frame("scrollPane");
        ScrollPane sp = new ScrollPane(ScrollPane.SCROLLBARS_ALWAYS);
        sp.add(new TextField("文本"));
        sp.add(new Button("按钮"));
        frame.add(sp);
        frame.setBounds(100,100,300,300);
        frame.setVisible(true);
    }
}
